package com.store.service;

import com.store.entity.User;
import java.util.List;
import java.util.Map;

public interface UserService {
    Map<String, Object> login(String username, String password);
    void register(String username, String password, String role);
    void registertwo(String username, String password, String role);
    User findByUsername(String username);
    User findById(Long id);
    void update(User user);
    void update2(User user);
    void delete(Long id);
    void updateLastLoginTime(Long id);
    void updatePassword(Long id, String oldPassword, String newPassword);
    void updateRole(Long id, String role);
    List<User> findAll();
    User getByUsername(String username);
    User create(User user);
    User createtwo(User user);
    User update(Long id, User user);
    long count();
    List<User> findRecentUsers(int limit);
}
